#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void swap(int* a, int* b)
{
	int temp = *a;
	*a = *b;
	*b = temp;
}
int main()
{
	int n1 = 0, n2 = 0;
	scanf("%d %d", &n1, &n2);
	swap(&n1, &n2);
	printf("%d %d", n1, n2);
	return 0;
}